import request from '@/utils/request.js'

// 获得大厅订单 {{host}}/shop/Transport_rider/getList
/**
 * @param longitude
 * @param latitude
*/
export const GetLobbyOrderApi = (params) => {
	return request('/shop/Transport_rider/getList', params)
}

// 获得订单详情 {{host}}/shop/Transport_rider/order_detail
/**
 * @param longitude
 * @param latitude
 * @param id
*/
export const GetOrderDetailsApi = (params) => {
	return request('/shop/Transport_rider/order_detail', params)
}

// 拒绝订单 {{host}}/shop/Transport_rider/refuseOrder
/**
 * @param id
*/
export const TurnDownOrderApi = (params) => {
	return request('/shop/Transport_rider/refuseOrder', params)
}

// 收到/抢到订单 {{host}}/shop/Transport_rider/acceptOrder
/**
 * @param id
*/
export const RushOrderApi = (params) => {
	return request('/shop/Transport_rider/acceptOrder', params)
}